//
//  ModelOfHot_area.m
//  FreeTravel
//
//  Created by 徐康 on 16/9/8.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfHot_area.h"

#import "ModelOfHot_areaPlace.h"
@implementation ModelOfHot_area
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray *arr1 = [NSMutableArray array];
    NSMutableArray *arr2 = [NSMutableArray array];
    if ([key isEqualToString:@"list"]) {
        for (NSDictionary *dic in value) {
            ModelOfHot_areaList *model = [ModelOfHot_areaList modelWithDic:dic];
            [arr1 addObject:model];
        }
        self.list = arr1;
    }if ([key isEqualToString:@"place"]) {
        for (NSDictionary *dic in value) {
            ModelOfHot_areaPlace *model = [ModelOfHot_areaPlace modelWithDic:dic];
            [arr2 addObject:model];
        }
        self.place = arr2;
    }
}
@end
